package com.alex.statistics.pojo.result.clusterAnalysis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CorrelationAnalysisResult {
    private double[][] correlationMatrix; // 相关系数矩阵
    private List<HeatmapPoint> heatmapData; // 热力图数据
    private List<String> variableNames;   // 变量名称
    private long computeTime;             // 计算时间（毫秒）

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class HeatmapPoint {
        private String x;                 // X轴变量名
        private String y;                 // Y轴变量名
        private double value;             // 相关系数值
    }
}    